package main

import "fmt"

func main() {
	// new 和 make 的相同点
	var a = make([]int, 3, 10)
	a = append(a, 1)
	fmt.Printf("%T %v\n", a, a)

	// new是指针类
	var b = new([]int)
	*b = append(*b, 2)
	fmt.Printf("%T %v\n", b, b)
}
